<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>{$seo.title}</title>
  <meta name="keywords" content="{$seo.keywords}" />
  <meta name="description" content="{$seo.description}" />
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

  <link href="{YUNYECMS_PUBLIC}plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" />
  <!-- Font Awesome -->
  <link rel="stylesheet" href="{YUNYECMS_UI}plugins/fontawesome-free/css/all.min.css"> <!-- Theme style -->
  <link rel="stylesheet" href="{YUNYECMS_UI}plugins/iCheck/all.css">
  <link rel="stylesheet" href="{YUNYECMS_UI}dist/css/AdminLTE.min.css">
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="{YUNYECMS_UI}dist/css/skins/_all-skins.min.css">
  <link href="{YUNYECMS_UI}plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
  <link rel="stylesheet" href="{YUNYECMS_UI}dist/css/plugins.css">
  <link rel="stylesheet" href="{YUNYECMS_UI}dist/css/member.css">
  <link rel="shortcut icon" href="{YUNYECMS_UI}dist/img/favicon.ico" />
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>

<body class="hold-transition skin-green sidebar-mini fixed">
  <div class="wrapper">
    {tpl "left","member"}
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
      <!-- Content Header (Page header) -->
      <div class="content-header">
        <div class="container-fluid">
          <div class="row mb-2">
            <div class="col-sm-6">
              <ol class="breadcrumb float-sm-left">
                <li class="breadcrumb-item" id="homeitem"><a href="{php echo url('member/member/index');}"
                    target="maincontent"> <i class="fa fa-home"></i>
                    首页</a></li>
                {loop name="breadcumb"}
                {if $i+1!=count($breadcumb)}
                <li class="breadcrumb-item"><a href="{$v.url}">{$v.title}</a></li>
                {else}
                <li class="breadcrumb-item active">{$v.title}</li>
                {/if}
                {/loop}
              </ol>
            </div>
            <div class="col-sm-6">
              {tpl "fast","member"}
            </div>
          </div>
        </div>
      </div>
      <div class="container-fluid" id="mainwrap">
        <!-- Main content -->
        <section class="content">
          <div class="row">
            <!-- left column -->
            <div class="col-md-12">
              <div class="card box-primary card-outline">
                <div class="card-header">
                  <div class="row">
                    <div class="col-xs-12 col-sm-12 col-md-8 pb10">
                      <h3 class="card-title">通知消息</h3> &nbsp;
                    </div>
                    <div class="col-xs-12 col-sm-12 col-md-4">
                      <div class="card-tools">
                        <form class="form-search" method="post" action="{php echo url('member/notice/index');}">
                          <div class="col-xs-12 col-md-12">
                            <div class="input-group input-group-sm">
                              <input type="text" name="searchkey" class="form-control float-right"
                                value="<?php if(!empty($searchkey)) echo $searchkey;?>" placeholder="请输入关键词">
                              <div class="input-group-append">
                                <button type="submit" class="btn btn-info"><i class="fa fa-search"></i></button>
                              </div>
                            </div>
                          </div>
                        </form>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="card-body">
                  <div class="blog-wrap single-post-page">
                    <!-- Blog details -->
                    <div class="post-content-block post-main-content mb-60 clearfix">
                      <h1 class="h2 text-center" data-animate="fadeInUp"> {$row.title}</h1>
                      <div class="post-meta nav mb-4 text-center" data-animate="fadeInUp">
                        点击：<span>{$row.hits}</span> &nbsp;&nbsp;
                        时间 <a href="#">{$row.time}</a>
                      </div>
                      <hr>
                      {if $row["pic"]!=''}
                      <img src=" {$row.pic}" data-rjs="2" alt="" data-animate="fadeInUp">
                      {/if}
                      <div class="post-main-content-inner" data-animate="fadeInUp">
                        {$row.content}
                      </div>
                      <div class="d-md-flex align-items-center justify-content-between" data-animate="fadeInUp">
                        <!-- Start Blog details share -->

                        <!-- End of Blog details share -->
                      </div>
                    </div>
                    <div class=" margin-top-20">
                      {if $pinglun_list}
                      <table class="table table-bordered table-striped ">
                        <thead>
                          <tr>
                            <th width="75%">内容</th>
                            <th width="25%">时间</th>
                          </tr>
                        </thead>
                        <tbody id="catlist">
                          {loop name="pinglun_list" item="vo"}
                          <tr>
                            <td>{$vo.content}</td>
                            <td align="left">
                              {php echo udate($vo['addtime']);}
                            </td>
                          </tr>
                          {if $vo['replay']}
                          {loop name="vo['replay']" item="vp"}
                          <tr>
                            <td>
                              <?php if($vp['admin_userid']) {echo "管理员:".uhtmlspecialchars_decode($vp['content']) ;} else{echo $vp['content'];} ?>
                            </td>
                            <td align="left">
                              {php echo udate($vp['addtime']);}
                            </td>
                          </tr>
                          {/loop}
                          {/if}
                          {/loop}

                        </tbody>
                      </table>

                      {/if}




                      <form name=defaultForm id="defaultForm" class="form-horizontal" method="post"
                        action="{php echo url('member/notice/addpinglun');}" enctype="multipart/form-data">
                        <div class="card-body">
                          <div class="form-group row">
                            <label for="tel" class="col-md-2 control-label">内容:</label>
                            <div class="col-md-6">
                              <textarea name="content" id="content" style="height: 120px;" class="form-control"
                                placeholder="请输入您的评论内容"></textarea>
                            </div>
                            <div class="col-sm-2">
                              <font class="red"> </font>
                            </div>
                          </div>
                          <div class="form-group row">
                          </div>
                          <!-- /.box-body -->
                          <div class="card-footer">
                            <div class="form-group row">
                              <div class="col-md-offset-2 col-md-9">
                                <input type="hidden" name="infoid" id="infoid" value="{$row.id}">
                                <input type="hidden" name="token" id="token" value="{$token}">
                                <input type="hidden" name="yyact" id="yyact" value="edit">
                                <button type="submit" class="btn bg-blue  btn-flat"> <i class="icon fa fa-edit"></i>
                                  提交评论 </button> &nbsp; &nbsp;
                                <button type="reset" class="btn btn-default btn-flat"> <i class="fa fa-undo"></i> 重 置
                                </button>
                              </div>
                            </div>
                          </div>
                          <!-- /.box-footer -->
                          <script language="javascript">
                            function check() {
                              if (document.getElementById("content").value == "") {
                                window.alert("评论内容不能为空!");
                                document.getElementById("content").focus();
                                return false;
                              }
                            }
                          </script>
                      </form>


                    </div>






                    <div class="row margin-top-20">
                      {if !empty($prev)}
                      <span class="detail_prev col-xs-12 col-sm-6 col-md-6">
                        上一条：
                        <a class="fy-left" href="{$prev.url}">
                          {$prev.title} </a>
                        </p>
                      </span>
                      {/if}
                      {if !empty($next)}
                      <span class="detail_next col-xs-12 col-sm-6 col-md-6">
                        下一条：
                        <a class="fy-right" href="{$next.url}">
                          {$next.title}</a>
                      </span>
                      {/if}
                    </div>
                    <!-- End of Blog details -->
                  </div>

                </div>

              </div>
              <!-- /.box -->
            </div>
            <!--/.col (left) -->
          </div>
          <!-- /.row -->
        </section>
        <!-- /.content -->
      </div>

    </div>
    <!-- /.content-wrapper -->
    {tpl "foot","member"}

    <!-- Add the sidebar's background. This div must be placed
       immediately after the control sidebar -->

  </div>
  <!-- ./wrapper -->

  <!-- jQuery 2.2.3 -->
  <script src="{YUNYECMS_UI}plugins/jQuery/jquery-3.6.1.min.js"></script>
  <!-- Bootstrap 3.3.6 -->
  <script src="{YUNYECMS_UI}bootstrap/js/bootstrap.min.js"></script>
  <!-- FastClick -->
  <script src="{YUNYECMS_UI}plugins/iCheck/icheck.min.js"></script>
  <!-- AdminLTE App -->
  <script type="text/javascript" src="{YUNYECMS_UI}validator/dist/js/bootstrapValidator.js"></script>
  <script src="{YUNYECMS_UI}dist/js/adminlte.js"></script>
  <script type="text/javascript">
    $(document).ready(function () {
      $('#userinfoform').bootstrapValidator({
        message: 'This value is not valid',
        //        live: 'disabled',
        feedbackIcons: {
          valid: 'glyphicon glyphicon-ok',
          invalid: 'glyphicon glyphicon-remove',
          validating: 'glyphicon glyphicon-refresh'
        },
        fields: {
          oldpwd: {
            validators: {
              notEmpty: {
                message: '旧密码不能为空'
              }
            }
          },
          pwd: {
            validators: {
              notEmpty: {
                message: '新密码不能为空'
              }
              ,
              different: {
                field: 'oldpwd',
                message: '新密码不能和旧密码相同'
              }
            }
          },
        }
      });
    });
  </script>
  <script>
    $(function () {
      //iCheck for checkbox and radio inputs
      $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
        checkboxClass: 'icheckbox_minimal-blue',
        radioClass: 'iradio_minimal-blue'
      });
      //Red color scheme for iCheck
      $('input[type="checkbox"].minimal-red, input[type="radio"].minimal-red').iCheck({
        checkboxClass: 'icheckbox_minimal-red',
        radioClass: 'iradio_minimal-red'
      });
      $('input[type="checkbox"].minimal-blue, input[type="radio"].minimal-blue').iCheck({
        checkboxClass: 'icheckbox_minimal-blue',
        radioClass: 'iradio_minimal-blue'
      });
      //Flat red color scheme for iCheck
      $('input[type="checkbox"].flat-blue, input[type="radio"].flat-blue').iCheck({
        checkboxClass: 'icheckbox_flat-blue',
        radioClass: 'iradio_flat-blue'
      });
    });
  </script>
</body>

</html>